import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {OrderListComponent} from './order/order-list/order-list.component';
import {OrderDetailComponent} from './order/order-detail/order-detail.component';
import {ConfigComponent} from './config/config.component';
import {PromotionComponent} from './promotion/promotion.component';
import {PromotionEditComponent} from './promotion/promotion-edit/promotion-edit.component';
import {PromotionDetailComponent} from './promotion/promotion-detail/promotion-detail.component';


const routes: Routes = [
  {path: '', redirectTo: 'orderList', pathMatch: 'full'},
  {path: 'orderList', component: OrderListComponent, data: {breadcrumb: '订单管理', keep: true}},
  {path: 'rechargeOrderDetail', component: OrderDetailComponent, data: {breadcrumb: '订单详情'}},
  {path: 'rechargePromotion', component: PromotionComponent, data: {breadcrumb: '直降促销'}},
  {path: 'rechargePromotionEdit', component: PromotionEditComponent, data: {breadcrumb: '编辑促销'}},
  {path: 'rechargePromotionDetail', component: PromotionDetailComponent, data: {breadcrumb: '促销详情'}},
  {path: 'rechargeConfig', component: ConfigComponent, data: {breadcrumb: '充值配置'}},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class RechargeRoutingModule {
}
